package com.oa.service.impl;

import java.util.Date;
import java.util.List;

import com.oa.bean.student.Rewardsp;
import com.oa.bean.student.Says;
import com.oa.bean.student.Student;
import com.oa.dao.StudentDAO;
import com.oa.service.StudentService;

public class StudentServiceImpl implements StudentService {
	
	private StudentDAO studentdao;

	public void setStudentdao(StudentDAO studentdao) {
		this.studentdao = studentdao;
	}
	private StudentDAO studentDAO;

	public void setStudentDAO(StudentDAO studentDAO) {
		this.studentDAO = studentDAO;
	}
	
	@Override
	public Says saysAdd(Says say) {//谈心记录添加
		return studentDAO.saysAdd(say);
	}

	@Override
	public Says saysUpdate(Says say) {//谈心记录修改
		return studentDAO.saysUpdate(say);
	}

	@Override
	public void saysDelete(Says say) {//谈心记录删除
		studentDAO.saysDelete(say);
	}

	@Override
	public List<Says> saysQueryPager(int page, int pageSize, Says say) {//谈心记录分页查询
		return studentDAO.saysQueryPagerBySayscon(page, pageSize, say);
	}

	@Override
	public Rewardsp rewardspAdd(Rewardsp rewardsp) {//添加奖惩
		return studentDAO.rewardspAdd(rewardsp);
	}

	@Override
	public Rewardsp rewardspUpdate(Rewardsp rewardsp) {
		return studentDAO.rewardspUpdate(rewardsp);
	}

	@Override
	public void rewardspDelete(Rewardsp rewardsp) {
		studentDAO.rewardspDelete(rewardsp);
	}

	@Override
	public List<Rewardsp> rewardspQueryPagerByObject(int page, int pageSize, Rewardsp rewardsp) {
		return studentDAO.rewardspQueryPagerByObject(page, pageSize, rewardsp);
	}

	@Override
	public List<Rewardsp> rewardspQueryPagerByDate(int page, int pageSize, Date date) {//奖惩按时间分页查询
		return studentDAO.rewardspQueryPagerByDate(page, pageSize, date);
	}

	@Override
	public Student stuSave(Student stu) {
		Student s = studentdao.stuSave(stu);
		return s;
	}

	@Override
	public Student stuUpdate(Student stu) {
		Student s = studentdao.stuUpdate(stu);
		return s;
	}

	@Override
	public void stuDelete(int id) {
		studentdao.stuDelete(id);
	}

	@Override
	public List<Student> StuQueryByPage(int pageNo, int pageSize) {
		List<Student> list = studentdao.StuQueryByPage(pageNo, pageSize);
		return list;
	}

	@Override
	public void getClose() {
		studentdao.getClose();
	}

}
